<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    {{info}}
    <input type="text" :value="info">
    <h1>双向绑定</h1>
    <!--v-model:让控件的值和变量进行双向绑定，变量值改变会影响页面 页面的值的改动也会影响变量-->
    <input type="text" v-model="info">
</div>
<script src="../js/vue.js"></script>
<script>
    let v = new Vue({
        el:"body>div",
        data() {
            return {
                info: "双向绑定"
            }
        },
    })
</script>
</body>
</html>